<template>
    <yd-navbar slot="navbar" fixed>
        <a @click="$router.go(-1)" slot="left">
            <yd-navbar-back-icon></yd-navbar-back-icon>
        </a>

        <span slot="center" class="header_text">{{msg}}</span>
    <!--
        <router-link to="#" slot="right">
            <yd-navbar-next-icon></yd-navbar-next-icon>
        </router-link>    -->
    </yd-navbar>

</template>

<script>
  export default {
    name: 'header',
    data() {
      return {
          msg: '分类'
      }
    },
    methods: {

    }
  }

</script>

<style>

  .yd-navbar {
    z-index: 5;
    position: fixed;
    top: 0;
  }
  .yd-navbar .header_text{
      font-size:18px;
  }


</style>
